﻿namespace TriangleGames.TrainRes
{
    using System;

    [AttributeUsage(AttributeTargets.Field)]
    public sealed class CompoundArrayAttribute : Attribute
    {
        private readonly string firstArrayName;
        private readonly string name;
        private readonly string secondArrayName;

        public CompoundArrayAttribute(string name, string firstArrayName, string secondArrayName)
        {
            this.name = name;
            this.firstArrayName = firstArrayName;
            this.secondArrayName = secondArrayName;
        }

        public string FirstArrayName
        {
            get
            {
                return this.firstArrayName;
            }
        }

        public string Name
        {
            get
            {
                return this.name;
            }
        }

        public string SecondArrayName
        {
            get
            {
                return this.secondArrayName;
            }
        }
    }
}

